const go/types.invalidOp

34 uses

	go/types (current package)
		builtins.go#L31: 			invalidOp+"invalid use of ... with built-in %s", bin.name)
		builtins.go#L81: 			check.errorf(argErrPos(call), WrongArgCount, invalidOp+"%s arguments for %v (expected %d, found %d)", msg, call, bin.nargs, nargs)
		builtins.go#L253: 				check.errorf(x, InvalidClose, invalidOp+"cannot close non-channel %s", x)
		builtins.go#L257: 				check.errorf(x, InvalidClose, invalidOp+"cannot close receive-only channel %s", x)
		builtins.go#L320: 			check.errorf(x, InvalidComplex, invalidOp+"%v (mismatched types %s and %s)", call, x.typ, y.typ)
		builtins.go#L553: 			check.errorf(call, WrongArgCount, invalidOp+"%v expects %d or %d arguments; found %d", call, min, min+1, nargs)
		call.go#L256: 		check.errorf(x, InvalidCall, invalidOp+"cannot call %s: %s", x, err.format(check))
		errors.go#L226: 	invalidOp  = "invalid operation: "
		expr.go#L76: 			check.errorf(x, UndefinedOp, invalidOp+"operator %s not defined on %s", op, x)
		expr.go#L141: 			check.errorf(x, UnaddressableOperand, invalidOp+"cannot take address of %s", x)
		expr.go#L222: 			check.errorf(pos, InvalidReceive, invalidOp+"cannot receive from %s: %s", x, cause)
		expr.go#L225: 			check.errorf(pos, InvalidReceive, invalidOp+"cannot receive from %s %s", cause, x)
		expr.go#L229: 			check.errorf(pos, InvalidSend, invalidOp+"cannot send to %s: %s", x, cause)
		expr.go#L232: 			check.errorf(pos, InvalidSend, invalidOp+"cannot send to %s %s", cause, x)
		expr.go#L353: 			check.errorf(x, InvalidShiftOperand, invalidOp+"shifted operand %s (type %s) must be integer", x, typ)
		expr.go#L600: 		check.errorf(errOp, code, invalidOp+"%s %s %s (%s)", x.expr, op, y.expr, cause)
		expr.go#L630: 		check.errorf(x, InvalidShiftOperand, invalidOp+"shifted operand %s must be integer", x)
		expr.go#L645: 			check.errorf(y, InvalidShiftCount, invalidOp+"negative shift count %s", y)
		expr.go#L663: 			if !allUnsigned(y.typ) && !check.verifyVersionf(y, go1_13, invalidOp+"signed shift count %s", y) {
		expr.go#L676: 			check.errorf(y, InvalidShiftCount, invalidOp+"shift count %s must be integer", y)
		expr.go#L697: 				check.errorf(y, InvalidShiftCount, invalidOp+"invalid shift count %s", y)
		expr.go#L748: 		check.errorf(x, InvalidShiftOperand, invalidOp+"shifted operand %s must be integer", x)
		expr.go#L818: 				check.errorf(posn, MismatchedTypes, invalidOp+"%s (mismatched types %s and %s)", e, x.typ, y.typ)
		expr.go#L820: 				check.errorf(posn, MismatchedTypes, invalidOp+"%s %s= %s (mismatched types %s and %s)", lhs, op, rhs, x.typ, y.typ)
		expr.go#L835: 			check.error(&y, DivByZero, invalidOp+"division by zero")
		expr.go#L845: 				check.error(&y, DivByZero, invalidOp+"division by zero")
		expr.go#L1097: 			check.errorf(x, InvalidAssert, invalidOp+"cannot use type assertion on type parameter value %s", x)
		expr.go#L1101: 			check.errorf(x, InvalidAssert, invalidOp+"%s is not an interface", x)
		expr.go#L1128: 					check.errorf(x, InvalidIndirection, invalidOp+"cannot indirect %s", x)
		expr.go#L1132: 					check.errorf(x, InvalidIndirection, invalidOp+"pointers of %s must have identical base types", x)
		index.go#L273: 				check.error(at, InvalidSliceExpr, invalidOp+"3-index slice of string")
		index.go#L380: 		check.error(expr.indices[1], InvalidIndex, invalidOp+"more than one index")
		stmt.go#L493: 			check.errorf(s.X, NonNumericIncDec, invalidOp+"%s%s (non-numeric type %s)", s.X, s.Tok, x.typ)
		typexpr.go#L449: 		check.errorf(ix.orig, NotAGenericType, invalidOp+"%s (%s)", ix.orig, cause)